package qy.jalgotrade.utils.plotter;

import qy.jalgotrade.bar.Bar.Frequency;

/**
 * 买入 Marker:
 * 
 * @author qy
 *
 */
public class BuyMarker extends Series<Double, Double> {

	/**
	 * 
	 * @param frequency frequency
	 */
	public BuyMarker(Frequency frequency) {

		this(frequency, null);
	}

	/**
	 * @param frequency frequency
	 * @param label label
	 */
	public BuyMarker(Frequency frequency, String label) {

		super(frequency, label);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see qy.jalgotrade.utils.plotter.Series#getColor()
	 */
	@Override
	public String getColor() {

		// XXX: qy-pyalgotrade: red for long
		return "r";
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see qy.jalgotrade.utils.plotter.Series#getMarker()
	 */
	@Override
	public String getMarker() {

		return "^";
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see qy.jalgotrade.utils.plotter.Series#needColor()
	 */
	@Override
	public boolean needColor() {

		return true;
	}
}
